package com.syh.bscommon.config;

import com.syh.bscommon.interceptor.LoginCheckInterceptor;
import com.syh.bscommon.interceptor.LowCheckInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @author syh 86187
 * @date 2024/7/16
 * com.syh.bscommon.config
 * @description
 */
@Configuration
public class BeanConfig {
    @Bean
    public LowCheckInterceptor lowCheckInterceptor() {
        return new LowCheckInterceptor();
    }
    @Bean
    public ExecutorService auctionExecutor() {
        return Executors.newFixedThreadPool(10); // 创建包含10个线程的线程池
    }
}
